#include "effectview.h"
#include "effectscene.h"
EffectView::EffectView(QWidget *parent) :
    QGraphicsView(parent)
{
    setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
    setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);

    m_effectscene = new EffectScene(this);
    setScene(m_effectscene);
    connect(m_effectscene,SIGNAL(back()),this,SLOT(backtowindow()));
}

EffectView::~EffectView()
{
    delete m_effectscene;
}

void EffectView::backtowindow()
{
    emit back();
}
